package com.microservice.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.microservice.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * write something please~
 *
 * @author huangrz
 * @since 2021/9/14
 **/
@EqualsAndHashCode(callSuper = true)
@TableName("tb_product")
@Data
public class ProductEntity extends BaseEntity {

    @TableId
    private Long id;

    private String name;

    private Integer count;

    private BigDecimal unitPrice;

    private Long version;

}
